import request from '@/utils/request'

// 查询未签收  列表
export function returnProduct(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/sign',
    method: 'post',
    data:data
  })
}

// 查询退货审核  列表
export function returnProductAudit(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/list',
    method: 'post',
    data:data
  })
}

// 查询退款申请  列表
export function returnMoney(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/signTwo',
    method: 'post',
    data:data
  })
}

// 查询退款审核 列表
export function returnMoneyAudit(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/listTwo',
    method: 'post',
    data:data
  })
}

// 签收
export function sign(id) {
  return request({
    url: `/sys/shopOrderReturnApproved/sign/${id}`,
    method: 'post'
  })
}

// 同意退货 1不同意2同意
export function projectAudit(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/handel',
    method: 'post',
    data: data
  })
}

// 同意退款
export function moneyAudit(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/handelTwo',
    method: 'post',
    data: data
  })
}
// 查询 退货已处理列表
export function haveReturnProduct(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/listOneAll',
    method: 'post',
    data: data
  })
}
// 查询 退款已处理列表
export function haveReturnMoney(data) {
  return request({
    url: '/sys/shopOrderReturnApproved/listAll',
    method: 'post',
    data: data
  })
}
// 查询 退款详情
export function orderReturnDetails(id) {
  return request({
    url: `/sys/shopOrderReturnApproved/${id}`,
    method: 'get'
  })
}








// ------------------------------
// 查询列表
export function dataListOrder(data) {
  return request({
    url: `/sys/shopOrderReturnApproved/search`,
    method: 'post',
    data,
  })
}

// 确认请求
export function dataConfirmed(data) {
  return request({
    url: `/sys/shopOrderReturnApproved/confirmed`,
    method: 'post',
    data
  })
}

// 平台签收操作
export function dataPlatform(data) {
  return request({
    url: `/sys/shopOrderReturnApproved/platformSign`,
    method: 'post',
    data,
  })
}

// 平台发货操作
export function platformShipped(data) {
  return request({
    url: `/sys/shopOrderReturnApproved/platformShipped`,
    method: 'post',
    data
  })
}

// 退款操作
export function shopOrderReturnApproved(data) {
  return request({
    url: `/sys/shopOrderReturnApproved/refund`,
    method: 'post',
    data
  })
}
//查看详情流程
export function process(id) {
  return request({
    url: `/sys/shopOrderReturnApproved/process/${id}`,
    method: 'get',
  })
}

